Skip to content

fix: writing abacus stru.#478

Merged
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
starinthesky72:devel
May 29, 2023
Merged

fix: writing abacus stru.#478
wanghan-iapcm merged 1 commit into
deepmodeling:develfrom
starinthesky72:devel

Conversation

@starinthesky72

Copy link
Copy Markdown
Contributor

When using system.to() and convert data to write ABACUS STRU file, func make_unlabeled_stru won't use atom_types in data and miswriting the atom order.
For example when using data from gaussian/log and other file using ungrouped atom coordinations,as the atom_types=[0,1,1,1,2,1] the func will write wrong coordinations and regard the atom as atom_types=[0,1,1,1,1,2] which cause serious problem.

@codecov

codecov Bot commented May 27, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (1b9daf4) 82.69% compared to head (3ddf5ed) 82.70%.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel     #478   +/-   ##
=======================================
  Coverage   82.69%   82.70%           
=======================================
  Files          70       70           
  Lines        6393     6394    +1     
=======================================
+ Hits         5287     5288    +1     
  Misses       1106     1106           
Impacted Files Coverage Δ
dpdata/abacus/scf.py 93.27% <100.00%> (+0.02%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@njzjz njzjz requested a review from pxlxingliang May 27, 2023 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants